package com.wnx.job.common.api;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Map;

/**
 * 封装查询条件
 * @author wangnaixing
 */

public class QueryPageBean implements Serializable{
    /**
     * 当前页
     */
    @ApiModelProperty("当前页")
    private Integer currentPage;
    /**
     * 每页大小
     */
    @ApiModelProperty("每页大小")
    private Integer pageSize;
    /**
     * 查询条件1
     */
    @ApiModelProperty("查询条件1")
    private String queryString;
    /**
     * 查询条件2
     */
    @ApiModelProperty("查询条件2")
    private Map<String,Object> queryParams;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getQueryString() {
        return queryString;
    }

    public void setQueryString(String queryString) {
        this.queryString = queryString;
    }

    public Map<String,Object> getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(Map<String,Object> queryParams) {
        this.queryParams = queryParams;
    }

    @Override
    public String toString() {
        return "QueryPageBean{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", queryString='" + queryString + '\'' +
                ", queryParams=" + queryParams +
                '}';
    }
}